/*
 * Copyright Radosław Smogura, 2012. All rights reserved.
 *
 * The content of this file is confidential and it is intelectual property
 * of copyright owners.
 * 
 *
 * $URL: http://reprap-ide.googlecode.com/svn/trunk/RepRapIDE/RepRapProject/src/main/java/eu/softper/reprap/project/filetypes/Canvas3DMouseAdapter.java $
 * $Id: Canvas3DMouseAdapter.java 3 2012-11-19 10:58:30Z mail@smogura.eu $
 * $Revision: 3 $
 */
package eu.softper.reprap.project.filetypes;

import com.sun.j3d.utils.universe.SimpleUniverse;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseWheelEvent;
import javax.media.j3d.Canvas3D;
import javax.media.j3d.ViewPlatform;

/**
 *
 * @author rsmogura
 */
public class Canvas3DMouseAdapter extends MouseAdapter {
    private SimpleUniverse universe;

    public Canvas3DMouseAdapter(SimpleUniverse universe) {
        this.universe = universe;
    }
    
    @Override
    public void mouseWheelMoved(MouseWheelEvent e) {
        double move = e.getPreciseWheelRotation();
        ViewPlatform vp = new ViewPlatform();
        //vp.s
        if (move > 0) {
//            universe.getViewingPlatform().setViewPlatform(pr);
        }
    }
    
}
